def triangle(rows):

	for rownum in range (rows):
		newValue=1
		PrintingList = [newValue]
		for iteration in range (rownum):
			newValue = newValue * ( rownum-iteration ) * 1 / ( iteration + 1 )
			print(convert(int(newValue)), end='')
		print()

    
def convert(x):
	skil = ""
	if int(x)%2 == 0:
		skil += "."
	if int(x)%2 == 1:
		skil += "#"
	return skil

fjoldi = int(input())
print("#")
triangle(fjoldi)
